package com.ft.admix.config;

import java.util.HashMap;
import java.util.Map;

public class PlatformConfig {
    private String platformName;
    private String appId;
    private Map<String, String> extraParams;
    
    private PlatformConfig(Builder builder) {
        this.platformName = builder.platformName;
        this.appId = builder.appId;
        this.extraParams = builder.extraParams;
    }
    
    public static class Builder {
        private String platformName;
        private String appId;
        private Map<String, String> extraParams = new HashMap<>();
        
        public Builder platformName(String platformName) {
            this.platformName = platformName;
            return this;
        }
        
        public Builder appId(String appId) {
            this.appId = appId;
            return this;
        }
        
        public Builder addExtra(String key, String value) {
            this.extraParams.put(key, value);
            return this;
        }
        
        public PlatformConfig build() {
            return new PlatformConfig(this);
        }
    }

    public String getPlatformName() {
        return platformName;
    }

    public String getAppId() {
        return appId;
    }

    public Map<String, String> getExtraParams() {
        return extraParams;
    }
}